package com.situ.meetingRoom.service;


import com.situ.meetingRoom.entity.User;
import com.situ.meetingRoom.util.PageInfo;
import com.situ.meetingRoom.vo.UserVO;

import java.util.List;

public interface UserService {
    User login(User user) throws Exception;

    int add(User user) throws Exception;

    int remove(Integer id) throws Exception;

    int edit(User user) throws Exception;

    User getById(Integer id);

    List<UserVO> getAll(User user);

    int resetPwd(String oldPwd, String newPwd, Integer id) throws Exception;

    PageInfo getForPage(Integer page, Integer limit, User user);
}
